package edu.zut.hb.software.base.service;

import edu.zut.hb.software.base.domain.BaseEntity;

import java.io.Serializable;
import java.util.List;

public interface GenericTreeManager<T extends BaseEntity<PK>, PK extends Serializable>
        extends GenericManager<T, PK> {

    public List<T> getAncestors(PK id);

    public List<T> getChildren(PK id);

    public List<T> getDescendants(PK id);

    public List<T> getRoot();
}
